﻿using System;
using PUCIT.eFCS.Business;

namespace PUCIT.eFCS.App_MasterPages
{
	public partial class StudentMaster : System.Web.UI.MasterPage
	{

		#region "Events"

		protected void Page_Load(object sender, EventArgs e)
		{
			if (Session["userId"] == null) // Trying to open page through email link
			{
				Session["userId"] = int.Parse(Request.QueryString["userId"]);
			}

			BusinessClass eFCS = new BusinessClass();
			string name = eFCS.GetUsername((int)Session["userId"]);
			//Session["username"] = name;
			username.InnerHtml = "<b>Welcome: " + name.ToUpper() + "</b>";
		}

		protected void Button1_Click(object sender, EventArgs e)
		{
            Session["hello"] = "Logout";
            Response.Redirect("http://accounts.google.com/logout");
		}

        
		#endregion

	}
}